<?php if ($this->user->is_student()): ?>
<?php if (! empty($group_members)): ?>

<h3>Group Members</h3>
<ul>
	<?php foreach ($group_members as $key => $value): ?>
	<li><?php echo $value['full_name']; ?></li>
	<?php endforeach ?>
</ul>
<?php endif ?>

<h3>Messages</h3>
<ul>
	<li><a href="<?php echo site_url('messages/viewGroupMessages'); ?>">View Group Messages</a></li>
	<li><a href="<?php echo site_url('messages/addGroupMessage'); ?>">Add a Group Messages</a></li>
</ul>

<h3>Options</h3>
<ul>
	<li><a href="<?php echo site_url('group/create_group'); ?>">Create a Group</a></li>
	<li><a href="<?php echo site_url('group/join_group'); ?>">Join a Group</a></li>
	<li><a href="<?php echo site_url('group/leave_group'); ?>">Leave Group</a></li>
</ul>
<?php endif ?>